package com.note.back.pojo;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.groups.Default;


@Data
public class Category {
    @NotNull(groups = Update.class)
    private Integer id;//主键ID
    @NotEmpty
    private String name;//分类名称
    private Integer author;//创建人ID
    public interface Add extends Default {

    }
    public interface Update extends Default{

    }
}